package com.tdkj.model.user;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

@Entity
@Table(name = "xnky_experience_and_integral_count_log")
public class BeanExperienceAndIntegralCountLog extends BaseEntity {
	
	private Long refId;
	private BeanUser user;
	private BeanExperienceAndIntegralCount count;
	private Timestamp dateTime;
	
	private Integer addExperience;
	private Integer addIntegral;
	
	public Long getRefId() {
		return refId;
	}
	public void setRefId(Long refId) {
		this.refId = refId;
	}
	public Timestamp getDateTime() {
		return dateTime;
	}
	public void setDateTime(Timestamp dateTime) {
		this.dateTime = dateTime;
	}

	@ManyToOne(fetch=FetchType.LAZY,cascade={CascadeType.REFRESH})
	@JoinColumn(name="count_id")
	public BeanExperienceAndIntegralCount getCount() {
		return count;
	}
	public void setCount(BeanExperienceAndIntegralCount count) {
		this.count = count;
	}
	
	@ManyToOne(fetch=FetchType.LAZY,cascade={CascadeType.REFRESH})
	@JoinColumn(name="user_id")
	public BeanUser getUser() {
		return user;
	}
	public void setUser(BeanUser user) {
		this.user = user;
	}
	public Integer getAddExperience() {
		return addExperience;
	}
	public void setAddExperience(Integer addExperience) {
		this.addExperience = addExperience;
	}
	public Integer getAddIntegral() {
		return addIntegral;
	}
	public void setAddIntegral(Integer addIntegral) {
		this.addIntegral = addIntegral;
	}
	
	
}